import 'package:json_annotation/json_annotation.dart';

part 'weapon.g.dart';

@JsonSerializable()
class WeaponUpgrade{
  final int code;
  final String message;
  final WeaponUpgradeData data;
  WeaponUpgrade(this.code, this.message, this.data);

  factory WeaponUpgrade.fromJson(Map<String, dynamic> json) =>
      _$WeaponUpgradeFromJson(json);

  Map<String, dynamic> toJson() => _$WeaponUpgradeToJson(this);
}

@JsonSerializable()
class WeaponUpgradeData {
  final int level;

  WeaponUpgradeData(this.level);

  factory WeaponUpgradeData.fromJson(Map<String, dynamic> json) =>
      _$WeaponUpgradeDataFromJson(json);

  Map<String, dynamic> toJson() => _$WeaponUpgradeDataToJson(this);


}


@JsonSerializable()
class WeaponFormInfo{
  final int code;
  final String message;
  final WeaponFormInfoData data;
  WeaponFormInfo(this.code, this.message, this.data);

  factory WeaponFormInfo.fromJson(Map<String, dynamic> json) =>
      _$WeaponFormInfoFromJson(json);

  Map<String, dynamic> toJson() => _$WeaponFormInfoToJson(this);
}

@JsonSerializable()
class WeaponFormInfoData {
  final String weaponFormId;
  final int formLevel;


  WeaponFormInfoData(this.weaponFormId, this.formLevel);

  factory WeaponFormInfoData.fromJson(Map<String, dynamic> json) =>
      _$WeaponFormInfoDataFromJson(json);

  Map<String, dynamic> toJson() => _$WeaponFormInfoDataToJson(this);


}